﻿using System;
using System.Collections;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;

namespace Oridea.Data.Fetching {
	/// <summary>
	/// Represents an object capable of executing a query against a data source and fetch either or both the data itself 
	/// or the count of entries.
	/// </summary>
	/// <typeparam name="T">Type of an object to fetch from the database. Usually a collection.</typeparam>
	public interface IFetcher<out T> {
		T Fetch();
		int Count();
	}
}
